package com.getan.boot.module.system.domain.bo;

import com.getan.boot.common.domain.GenericBO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;

/**
 * 个人中心
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
public interface ProfileBO {

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class UpdateInfoBO extends GenericBO {
        @NotEmpty(message = "员工姓名不能为空")
        private String nickname;
        private Integer gender;
        private String mobile;
    }

    @EqualsAndHashCode(callSuper = true)
    @Data
    public static class UpdatePasswordBO extends GenericBO {
        @NotEmpty(message = "原密码不能为空")
        private String oldPwd;
        @NotEmpty(message = "新密码不能为空")
        private String newPwd;
        @NotEmpty(message = "确认密码不能为空")
        private String newPwdRepeat;
    }

}
